package com.liang.pojo;

import lombok.Data;

import java.math.BigInteger;

@Data
public class User {
    private float type_plot_value=0;
    private float type_comedy_value=0;
    private float type_action_value=0;
    private float type_love_value=0;
    private float type_science_value=0;
    private float type_cartoon_value=0;
    private float type_suspense_value=0;
    private float type_horror_value=0;
    private float type_terror_value=0;
    private float type_crime_value=0;
    private float type_gay_value=0;
    private float type_music_value=0;
    private float type_sg_value=0;
    private float type_biographical_value=0;
    private float type_historical_value=0;
    private float type_war_value=0;
    private float type_western_value=0;
    private float type_fantasy_value=0;
    private float type_adventure_value=0;
    private float type_disaster_value=0;
    private float type_martial_value=0;
    private BigInteger userId;

    /**
     * 根据i取的不同属性的值
     * @param i
     * @return
     */
    public float getMethod(int i){
        float flag=0;
        if (i==1){
            return getType_plot_value();
        }
        if (i==2){
            return getType_comedy_value();
        }
        if (i==3){
            return getType_action_value();
        }
        if (i==4){
            return getType_love_value();
        }
        if (i==5){
            return getType_science_value();
        }
        if (i==6){
            return getType_cartoon_value();
        }
        if (i==7){
            return getType_suspense_value();
        }
        if (i==8){
            return getType_horror_value();
        }
        if (i==9){
            return getType_terror_value();
        }
        if (i==10){
            return getType_crime_value();
        }
        if (i==11){
            return getType_gay_value();
        }
        if (i==12){
            return getType_music_value();
        }
        if (i==13){
            return getType_sg_value();
        }
        if (i==14){
            return getType_biographical_value();
        }
        if (i==15){
            return getType_historical_value();
        }
        if (i==16){
            return getType_war_value();
        }
        if (i==17){
            return getType_western_value();
        }
        if (i==18){
            return getType_fantasy_value();
        }
        if (i==19){
            return getType_adventure_value();
        }
        if (i==20){
            return getType_disaster_value();
        }
        if (i==21){
            return getType_martial_value();
        }
        return flag;
    }
}
